package com.dhp.campus.Common;

public enum ErrorCode {
    PARAMS_ERROR(40000 , "请求参数错误"  , ""),
    PARAMS_EMPTY(40001 , "请求参数为空" , ""),
    NOT_LOGIN(40002 , "用户未登录" , ""),
    NO_AUTH(40003 , "无权限" , ""),
    SYSTEM_ERROR(50000 , "系统内部异常" , ""),
    NOT_IN_DB(40004 , "无法在数据库中找到数据" , ""),
    BUSINESS_ERROR(40006 , "业务错误" , "");



    private final Integer code;
    private final String message;
    private final String description;

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    public String getDescription() {
        return description;
    }

    ErrorCode(Integer code , String message , String description){
        this.code = code;
        this.message = message;
        this.description = description;
    }
}
